﻿using DevTeam;
using System;
using System.Data;
using System.Windows.Forms;

namespace ConfExpert.Forms.Depo
{
    public partial class DetailTwinsMuadil : XPopupForm
    {
        int E, Y;
        public DetailTwinsMuadil(int _E, int _Y)
        {
            InitializeComponent();
            E = _E;
            Y = _Y;
        }

        private void DetailTwinsMuadil_Load(object sender, EventArgs e)
        {
            
            

            DataTable dt = ExecuteDataTable("GetTwinsMuadil", E, Y);
            dt.TableName = "TwinsMuadil";
            if (ds.Tables.Contains("TwinsMuadil"))
                ds.Tables.Remove(dt);
            ds.Tables.Add(dt);

            BindingSource bs = new BindingSource(ds, "TwinsMuadil");
            pictureEdit1.DataBindings.Add("EditValue", bs, "Photo1");
            pictureEdit2.DataBindings.Add("EditValue", bs, "Photo2");
            labelControl1.DataBindings.Add("Text", bs, "Expl1");
            labelControl2.DataBindings.Add("Text", bs, "Expl2");
        
        }
    }
}
